import 'reflect-metadata'
function getRequestDecorator(type) {
  return function (path) {
    return function (target, key) {
      Reflect.defineMetadata('path', path, target, key)
      Reflect.defineMetadata('method', type, target, key)
    }
  }
}
export const get = getRequestDecorator('get')
export const post = getRequestDecorator('post')
